Skip to content

Pro 7798 fix ordering - #4994

Merged
BoDonkey merged 14 commits into
mainfrom
pro-7798-fix-ordering
Jul 10, 2025
Merged

Pro 7798 fix ordering#4994
BoDonkey merged 14 commits into
mainfrom
pro-7798-fix-ordering

Conversation

@BoDonkey

@BoDonkey BoDonkey commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Summary

Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"
This PR implements better menu arrangement options for the admin-bar module. It focuses on groups first, but with order as a backup for organizing non-grouped items. It also increases the tests to cover functionality better. Closes PRO-7798.

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@BoDonkey
BoDonkey requested a review from boutell July 2, 2025 17:04
@linear

linear Bot commented Jul 2, 2025

Copy link
Copy Markdown

boutell
boutell previously approved these changes Jul 3, 2025

@boutell boutell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels right. Unfortunately I don't have time to test it thoroughly but the mocha test coverage looks solid.

@BoDonkey
BoDonkey requested a review from myovchev July 4, 2025 10:01
myovchev
myovchev previously approved these changes Jul 4, 2025

@myovchev myovchev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tiny code style thing, it looks good.

}
});
});
} else {

@myovchev myovchev Jul 4, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need else here. Just return at the end of the previous if block(becauseelse` ends the function). It's more readable.

myovchev
myovchev previously approved these changes Jul 4, 2025

@myovchev myovchev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing ### Adds in the CHANGELOG. Also, as discussed with @haroun, we would like to create all sub-titles, even empty (Adds, Changes, etc) initially to reduce the merge conflicts. It's a good timing for doing it.

@BoDonkey
BoDonkey requested a review from myovchev July 10, 2025 13:50
@myovchev

Copy link
Copy Markdown
Contributor

You are missing ### Adds in the CHANGELOG. Also, as discussed with @haroun, we would like to create all sub-titles, even empty (Adds, Changes, etc) initially to reduce the merge conflicts. It's a good timing for doing it.

@BoDonkey You probably missed this one, I don't see any change in the changelog related to that.

@BoDonkey
BoDonkey merged commit 649919a into main Jul 10, 2025
9 checks passed
@BoDonkey
BoDonkey deleted the pro-7798-fix-ordering branch July 10, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants